package com.hxexp.weixin.hpe.api.trafficline.model;

import java.io.Serializable;

import org.joda.time.LocalDate;

/**
 * HPE查询车次接口参数
 *
 * @author li.jiang
 *
 */
public final class TrafficLineParamBean implements Serializable {

    private static final long serialVersionUID = -7657978613990329118L;
    /**
     * 出发城市编号
     */
    private String startCityId;
    /**
     * 出发车站编号
     */
    private String startStationId;
    /**
     * 到达城市编号
     */
    private String arriveCityId;
    /**
     * 到达车站编号
     */
    private String arriveStationId;
    /**
     * 出发日期
     */
    private String leaveDate;
    /**
     * 集团公司编号
     */
    private String groupId;
    /**
     * 预留参数2
     */
    private String param2;
    /**
     * 预留参数3
     */
    private String param3;
    /**
     * @return the startCityId
     */
    public String getStartCityId() {
        return startCityId;
    }
    /**
     * @param startCityId the startCityId to set
     */
    public void setStartCityId(String startCityId) {
        this.startCityId = startCityId;
    }
    /**
     * @return the startStationId
     */
    public String getStartStationId() {
        return startStationId;
    }
    /**
     * @param startStationId the startStationId to set
     */
    public void setStartStationId(String startStationId) {
        this.startStationId = startStationId;
    }
    /**
     * @return the arriveCityId
     */
    public String getArriveCityId() {
        return arriveCityId;
    }
    /**
     * @param arriveCityId the arriveCityId to set
     */
    public void setArriveCityId(String arriveCityId) {
        this.arriveCityId = arriveCityId;
    }
    /**
     * @return the arriveStationId
     */
    public String getArriveStationId() {
        return arriveStationId;
    }
    /**
     * @param arriveStationId the arriveStationId to set
     */
    public void setArriveStationId(String arriveStationId) {
        this.arriveStationId = arriveStationId;
    }
    /**
     * @return the leaveDate
     */
    public String getLeaveDate() {
        LocalDate date = LocalDate.parse(leaveDate);
        return date.toString();
    }
    /**
     * @param leaveDate the leaveDate to set
     */
    public void setLeaveDate(String leaveDate) {
        this.leaveDate = leaveDate;
    }
    /**
     * @return the param1
     */
    public String getGroupId() {
        return groupId;
    }
    /**
     * @param group the param1 to set
     */
    public void setGroup(String group) {
        this.groupId = group;
    }
    /**
     * @return the param2
     */
    public String getParam2() {
        return param2;
    }
    /**
     * @param param2 the param2 to set
     */
    public void setParam2(String param2) {
        this.param2 = param2;
    }
    /**
     * @return the param3
     */
    public String getParam3() {
        return param3;
    }
    /**
     * @param param3 the param3 to set
     */
    public void setParam3(String param3) {
        this.param3 = param3;
    }
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return String
.format(
                "TrafficLineParamBean [startCityId=%s, startStationId=%s, arriveCityId=%s, arriveStationId=%s, leaveDate=%s, groupId=%s, param2=%s, param3=%s]",
                        startCityId, startStationId, arriveCityId, arriveStationId, leaveDate, groupId, param2, param3);
    }

}